package com.xfcy.blog.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xfcy.blog.common.constant.DateConstant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

/**
 * 日志表(UserLog)表实体类
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:06
 */
@TableName("b_user_log")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserLog implements Serializable {
    //主键ID
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //操作用户ID
    private Long userId;
    //ip地址
    private String ip;
    //操作地址
    private String address;
    //操作类型
    private String type;
    //操作日志
    private String description;
    //操作模块
    private String model;
    //操作时间
    @JsonFormat(pattern = DateConstant.FORMAT_STRING, timezone = DateConstant.GMT_TIMEZONE)
    private LocalDateTime createTime;
    //操作结果
    private String result;
    //操作系统
    private String accessOs;
    //浏览器
    private String browser;
    //客户端类型
    private String clientType;

}

